extends "../dujiaoshou-3/dujiaoshou-3.gd"


var baseId = ""
var upText1 = "应援治疗量提高50%"
var upText2 = "装填指挥额外赋予10%冷却加成"
func _extInit():
	._extInit()
	lv = 4             #等级的设置
	addSkill("每{cd}秒放出U酱支援战场，发起2次应援，并赋予被应援单位周围2格的敌人2秒<眩晕>", "Unicorn", "dujiaoshou4", 10)

func upgrade():
	.upgrade()
	if upgraded == 1:
		p2 = 1.5

func _castCdSkill(id):
	._castCdSkill(id)
	if id == "dujiaoshou4":
		dujiaoshou4()

func dujiaoshou4():
	for i in range(2):
		var cha = dujiaoshou2()
		doUnicorn(cha)

func doUnicorn(cha):
	if cha == null:return
	for i in getCellChas(cell, 2, 1):
		if not i.hasBuff("b_xuanYun"):
			castBuff(i, buff.b_xuanYun.new(2))